{__NOLAYOUT__}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>video</title>
    <if condition="$ua == 1">
        <link href="__PUBLIC__/dist/css/video-js.min.css" rel="stylesheet">
        <else/>
        <link href="__PUBLIC__/dist/css/DPlayer.min.css" rel="stylesheet">
    </if>

    <style>
        body,
        html,
        video {
            padding: 0;
            margin: 0;
        }

        .dplayer.dplayer-mobile .dplayer-full-in-icon {
            display: none !important;
        }

        .dplayer .dplayer-full-in-icon {
            display: none !important;
        }
    </style>
</head>

<body>
    <div id="player1"> </div>
    <video id="example_video_1" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto">
        <source></source>
    </video>
    <if condition="$ua == 1">
        <script src="__PUBLIC__/dist/js/video.min.js"></script>
        <else/>
        <script src="__PUBLIC__/dist/js/DPlayer.min.js"></script>
    </if>


    <script>
        var gurl = '{$gurl}';
        var purl = '{$purl}';
        var burl = '{$burl}';
        /*<if condition="$ua == 0">*/
        var dp = new DPlayer({
            element: document.getElementById('player1'),
            autoplay: true,//自动播放
            video: {
                quality: [{
                    name: '高清',
                    url: gurl,
                    type: 'normal'
                }, {
                    name: '标清',
                    url: purl,
                    type: 'normal'
                }, {
                    name: '流畅',
                    url: burl,
                    type: 'normal'
                }],
                //默认选择第一个视频源
                defaultQuality: {$defaultQuality}
            }
        })
        document.querySelector(".dplayer-full-in-icon").click();
        // document.querySelector(".dplayer-full-icon").addEventListener("click", function () {
        //     if(window.parent.full)window.parent.full(dp, window.location.href);
        // })
        /*<else />*/
        // ie player
        var w = window.innerWidth;
        var h = window.innerHeight;
        document.querySelector("#example_video_1 source").src = url;
        var myPlayer = videojs('example_video_1');
        myPlayer.ready(function () {
            this.width(w);
            this.height(h);
        })

        /*</if>*/
    </script>
</body>

</html>